Partial Strictness in Two-Phase Locking

نویسندگان

  • Eljas Soisalon-Soininen
  • Tatu Ylönen
چکیده

Two-phase locking is a standard method for managing concurrent transactions in database systems. In order to guarantee good recovery properties, two-phase locking should be strict, meaning that locks can be released only after the transaction's commit or abort. In this paper we show that even exclusive locks can be released immediately after the commit request has arrived, without sacriicing any important recovery properties. This optimization is especially useful if the commit operation takes much time compared with the other actions, as for main-memory databases, or if the commits are performed in batches. 1 Introduction When several transactions operate concurrently on the same database, a mechanism is needed for controlling the concurrency in order to guarantee correctness. That is, we have to ensure that when transactions are run concurrently the consistency of the database is preserved as if the transactions would be run serially. As to concurrency, the formal correctness is based on the notion of serializability, meaning that the interleaved mode of operation has the same result as when the transactions are run one by one. The most widely used strategy for scheduling concurrent transactions is based on locking. The scheduler locks a data item before a transaction may access it, and no other transaction may access the data item before the lock has been released. Locks are often divided into exclusive and shared locks; several transactions may hold a shared lock on a data item but when one holds an exclusive lock no other transaction may hold any (shared or exclusive) lock on the same data item. In two-phase locking 4], once the scheduler has released the lock for a transaction, it may not subsequently obtain any more locks for that transaction on any data item. It has been shown 13] that two-phase locking is a most general locking strategy that guarantees serializability when the set of transactions may change dynamically. In addition to guaranteeing serializability the scheduler must reject interleav-ings that are not recoverable. That is, if a transaction aborts, we must be able to reconstruct the situation we would have arrived at if the aborted transaction had not existed. Moreover, for practical reasons, it is advisable that aborting one transaction does not cause other transactions to abort, i.e., cascading aborts are

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Evaluation of Phase Locking and Cross Correlation Methods for Estimating the Time Lag between Brain Sites: A Simulation Approach

Introduction: Direction and latency of electrical connectivity between different sites of brain explains brain neural functionality. We compared efficiency of cross correlation and phase locking methods in time lag estimation which are based on local field potential (LFP) and LFPspike signals, respectively. Methods: Signals recorded from MT area of a macaque’s brain was used in a simulation ...

متن کامل

Transactions are Back—but How Different They Are? Relating STM and Databases Consistency Conditions (Preliminary Version)

We describe several database consistency conditions that restrict ongoing transactions (which might later be aborted), and relate them to known consistency conditions for transactional memory. In particular, we show that rigorousness is strictly stronger than opacity, but strictness is incomparable to opacity. The same relationships also hold for virtual world consistency. We also show that all...

متن کامل

Dual Phase Detector Based Delay Locked Loop for High Speed Applications

In this paper a new architecture for delay locked loops will be presented.  One of problems in phase-frequency detectors (PFD) is static phase offset or reset path delay. The proposed structure decreases the jitter resulted from PFD by switching two PFDs. In this new architecture, a conventional PFD is used before locking of DLL to decrease the amount of phase difference between input and outpu...

متن کامل

The Transient Behavior of LC and Ring Oscillators under External Frequency Injection

 In this work, time domain analysis is used to solve Adler’s equation in order to obtain the required time, for an oscillator under external injection, reaching the steady-state condition. Mathematical approach has been applied to fully describe the transient of frequency acquisition in injection-locked LC and Ring oscillators considering their time-varying nature. Then, the analysis is verifie...

متن کامل

Two Phase Locking-Based Algorithm with Partial Abort for Firm Deadline Real-Time Database Systems

Locking-based concurrency control algorithms are often proposed as an alternative to optimistic algorithms for real-time database systems. Many of them suffer from the costs of transaction restarts, usually having influence on the system performance. We propose a new method called partial abort aimed to minimize the costs of restarts by saving the part of previously performed work, which is ind...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1995